package cn.edu.scau.cmi.longyuanjun.comprehensiveExperiente;


public  abstract class PICCService extends BuildInsuranceCompany{
	
	private String description;
	static int flag = 0;
	public static final String accidents = "accidents";
	public static final String bodyInjur = "bodyinjur";
	public static final String casualties = "casualties";
	public static final String collision = "collision";
	
	public static PICCService getPICCServiceType(String sType) {
		PICCService ps = null;
		
		if (sType.equals(PICCService.accidents)){
			ps = new PICCAccidents();
			flag = 1;
		}
        if (sType.equals(PICCService.bodyInjur)){
			ps = new PICCBodyInjur();
			flag = 2;
		}
        if (sType.equals(PICCService.casualties)){
			ps = new PICCCasualties();
			flag = 3;
		}
        if (sType.equals(PICCService.collision)){
			ps = new PICCCollision();
			flag = 4;
		}
        return ps;
	}
	
	public abstract String getService(); 
	
}
